package repo

import (
	"context"
	"ucenter/model"
)

// UserInfoRepo 用户接口 不关注下方实现
type UserInfoRepo interface {
	FindByOpenId(ctx context.Context, openId string) (user *model.UserInfo, err error)
	Save(ctx context.Context, user *model.UserInfo) error
	FindById(ctx context.Context, id int64) (user *model.UserInfo, err error)
	UpdateUser(ctx context.Context, id int64, avatarUrl string, nickname string) error
}
